package com.hbnu.system.core.base;


public enum GeneralRespEnum implements IRespCode {

    EXECUTE_SUCCESS("AA", "操作成功"),
    EXECUTE_FAILED("AE", "操作失败"),

    QUERY_SUCCESS("AA", "查询成功"),
    QUERY_FAILED("AE", "查询失败"),

    INSERT_SUCCESS("AA", "新增成功"),
    INSERT_FAILED("AE", "新增失败"),

    UPDATE_SUCCESS("AA", "更新成功"),
    UPDATE_FAILED("AE", "更新失败"),

    DELETE_SUCCESS("AA", "删除成功"),
    DELETE_FAILED("AE", "删除失败"),

    IMPORT_FAILED("AE", "导入失败"),
    PARAMETER_IS_NULL("AE", "参数为空"),
    FILE_MORE_MAX("AE", "文件超过最大限制，限制为100MB"),
    SERVER_BUSY("AE", "服务器繁忙"),
    PARAMETER_FAILED("AE", "无效参数"),

    REPEAT_ERROR("AE", "已有重复数据"),
    DATE_FORMAT_ERROR("AE", "时间格式错误"),
    NOT_FOUND_DATA("AE", "没有找到数据"),
    ;

    private final String code;
    private final String msg;

    GeneralRespEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }


}
